package com.shine.chemicalWholeProcessSystem.ui.adapter;

import android.widget.ImageView;

import androidx.recyclerview.widget.RecyclerView;

import com.bumptech.glide.Glide;
import com.shine.chemicalWholeProcessSystem.R;

import cn.bingoogolapple.baseadapter.BGARecyclerViewAdapter;
import cn.bingoogolapple.baseadapter.BGAViewHolderHelper;

public class ImageAdapter extends BGARecyclerViewAdapter<Object> {

    public ImageAdapter(RecyclerView recyclerView, int defaultItemLayoutId) {
        super(recyclerView, defaultItemLayoutId);
    }

    @Override
    protected void fillData(BGAViewHolderHelper helper, int position, Object model) {
        ImageView img = helper.getView(R.id.img);
        Glide.with(mContext).load(model).into(img);
        helper.setItemChildClickListener(R.id.close);
    }
}
